import { INCREASE, DECREASE } from './actionTypes';

const reducer = (state = { count: 0 }, action) => {
    console.log('action: ', action.type)
    switch (action.type) {
        case INCREASE: return { count: state.count + 1 };
        case DECREASE: return { count: state.count - 1 };
        default: return state;
    }
}

export default reducer